// 手动导入所有路由模块
import noticeRoutes from './notice/index.route';
import utilityPrepayRoutes from './utility-prepay/index.route';
function getRoutes(routes: any[], modulePath: string) {
  return routes.map((route) => {
   return {
    ...route,
    key: `${modulePath}/${route.key}`,
    path: `${modulePath}/${route.path}`,
   }
  });
}
// 合并所有路由配置
const routes = [
  ...getRoutes(noticeRoutes, 'notice'),
  ...getRoutes(utilityPrepayRoutes, 'utility-prepay'),
];

export default routes;